package cur.nature.framework.core.bean;

import java.io.Serializable;

/**
 * 主要用于方法返回多个值，或者生成多个对象
 */
public  class MBean implements Serializable {
    private static final long serialVersionUID = 1L;
    public static class M2<A,B> implements Serializable {
        public A v1;
        public B v2;
        public M2(A a, B b) {
            this.v1 = a;
            this.v2 = b;
        }
    }

    public static class M3<A,B,C> implements Serializable {
        public A v1;
        public B v2;
        public C v3;
        public M3(A a, B b, C c) {
            this.v1 = a;
            this.v2 = b;
            this.v3 = c;
        }
    }

    public static class M4<A,B,C,D> implements Serializable {
        public A v1;
        public B v2;
        public C v3;
        public D v4;
        public M4(A a, B b, C c, D d) {
            this.v1 = a;
            this.v2 = b;
            this.v3 = c;
            this.v4 = d;
        }
    }
}
